#ifndef MSSIGNAL_H
#define MSSIGNAL_H
#ifdef __cplusplus
   extern "C"{
#endif
#include <signal.h>
#include <libmslog/mstype.h>

#define mswait_ifexited(s) 	WIFEXITED(s)
#define mswait_exitstatus(s)	WEXITSTATUS(s)
#define mswait_ifsignaled(s) WIFSIGNALED(s)
#define mswait_termsig(s) 	WTERMSIG(s)
#define mswait_ifstopped(s) 	WIFSTOPPED(s)
#define mswait_stopsig(s) 	WSTOPSIG(s)

#ifndef MSSIGNAL_C
extern ms_string mssignal_desstring[128];
extern ms_void 
	mssignal_api_catch(ms_string name);
#endif
#ifdef __cplusplus
}
#endif
#endif
